﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlackBBS.Extensions
{
    public static class DateTimeExt
    {
        public static double DateDiffInMinutes(this DateTime d1, DateTime d2)
        {
            TimeSpan ts = d2 - d1;
            return ts.TotalMinutes;
        }
    }
}
